<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head th:replace="admin/common/common_css :: commonHeader('后台管理系统')">
</head>
<body>
<header class="navbar-wrapper">
    <div class="navbar navbar-fixed-top">
        <div class="container-fluid cl">
            <a class="logo navbar-logo f-l mr-10 hidden-xs" href="#">后台管理系统</a>
            <nav id="Hui-userbar" class="nav navbar-nav navbar-userbar hidden-xs">
                <ul class="cl">
                    <li id="Hui-msg">
                            <i class="Hui-iconfont" style="font-size:18px">&#xe68a;</i>
                        </a>
                    </li>
                    &nbsp;
                    <li>欢迎您，<th:block th:text="${username}"></th:block></li>
                    <li class="dropDown dropDown_hover">
                        <a href="#" class="dropDown_A">个人中心 <i class="Hui-iconfont">&#xe6d5;</i></a>
                        <ul class="dropDown-menu menu radius box-shadow">
                            <li><a href="javascript:editMySelf();">个人信息</a></li>
                            <li><a href="javascript:editPswd();">修改密码</a></li>
                            <li><a href="javascript:logout();">退出系统</a></li>
                        </ul>
                    </li>
                </ul>
            </nav>
        </div>
    </div>
</header>
<!-- 左侧菜单 -->
<aside class="Hui-aside">
    <div class="menu_dropdown bk_2">
        <!-- 循环一级菜单 -->
        <!--<c:forEach items="${menus }" var="menu_1">-->
            <!--<c:if test="${menu_1.menuLevel==1 && menu_1.menuPid == 0}">-->
                <th:block th:each="menu_1,index : ${menus}">
                    <th:block th:if="${menu_1.menuLevel==1 && menu_1.menuPid == 0}">
                        <dl id="${menu_1.menuCode }">
                            <dt>
                                <i class="Hui-iconfont">&#<th:block th:text="${menu_1.menuIcon }"></th:block>;</i><th:block th:text="${menu_1.menuName }"></th:block>
                                <th:block th:if="${menu_1.isParent == 1}">
                                    <i class="Hui-iconfont menu_dropdown-arrow">&#xe6d5;</i>
                                </th:block>
                            </dt>
                            <!-- 循环二级菜单 -->
                            <th:block th:if="${menu_1.isParent == 1 }">
                                <dd>
                                    <ul>
                                        <th:block th:each="menu_2,index2:${menus }">
                                            <th:block th:if="${menu_2.menuPid == menu_1.menuId && menu_2.menuLevel == 2 }" >
                                                <li><a th:attr="data-href=${menu_2.menuUrl },data-title=${menu_2.menuName }" href="javascript:void(0)" th:text="${menu_2.menuName }"></a></li>
                                            </th:block>
                                        </th:block>
                                    </ul>
                                </dd>
                            </th:block>
                        </dl>
                    </th:block>
                </th:block>
            <!--</c:if>-->
        <!--</c:forEach>-->
    </div>
</aside>

<div class="dislpayArrow hidden-xs">
    <a class="pngfix" href="javascript:void(0);" onClick="displaynavbar(this)"></a>
</div>
<section class="Hui-article-box">
    <!-- 首页信息 -->
    <div id="Hui-tabNav" class="Hui-tabNav hidden-xs">
        <div class="Hui-tabNav-wp">
            <ul id="min_title_list" class="acrossTab cl">
                <li class="active">
                    <span title="管理首页">管理首页</span>
                    <em></em>
                </li>
            </ul>
        </div>
        <div class="Hui-tabNav-more btn-group">
            <a id="js-tabNav-prev" class="btn radius btn-default size-S" href="javascript:;">
                <i class="Hui-iconfont">&#xe6d4;</i>
            </a>
            <a id="js-tabNav-next" class="btn radius btn-default size-S" href="javascript:;">
                <i class="Hui-iconfont">&#xe6d7;</i>
            </a>
        </div>
    </div>
    <!-- iframe -->
    <div id="iframe_box" class="Hui-article">
        <div class="show_iframe">
            <div style="display:none" class="loading"></div>
            <iframe scrolling="yes" id="centerFrame" frameborder="0" src="first"></iframe>
        </div>
    </div>
</section>

<div th:include="admin/common/common_js :: onLoadJS"></div>
<script type="text/javascript">


    // 个人信息
    function editMySelf() {
        layer_show('个人信息', '/pestdiagnosis/sys/user/toEditMySelf', 800, 500);
    }

    // 修改密码
    function editPswd() {
        layer_show('修改密码', '/pestdiagnosis/sys/user/toEditMySelfPswd', 500,280);
    }

    // 退出登录
    function logout() {
        layer.confirm('您确定要退出系统？', {title:'系统消息'},function(index){
            window.parent.location.href = '/pestdiagnosis/logout';
        });
    }
</script>
</body>
</html>